//
//  Intente.m
//  成亲坊项目
//
//  Created by dlios on 15-8-24.
//  Copyright (c) 2015年 dlios. All rights reserved.
//

#import "Intente.h"
#import "Reachability.h"
@implementation Intente

+(NSString *)reachIntenete
{
    Reachability *reach = [Reachability reachabilityWithHostName:@"http://www.baidu.com"];
    NetworkStatus sta = [reach currentReachabilityStatus];
    if (sta == NotReachable) {
        
        return @"NO";
    }else if (sta == ReachableViaWiFi)
    {
        return @"WiFi";
    }else if (sta == ReachableViaWWAN )
    {
        return @"WWAN";
    }
    return nil;
}

@end
